#
# Copyright (C) 2013 Will Dignazio
#

ifndef ROOTDIR
	ROOTDIR = ..
	CC = clang
	CFLAGS = -I $(ROOTDIR)/include
endif

LIB = libtalk.a
CSRC =	talk.c

COBJ	= $(CSRC:.c=.o)
CLIBS	= $(ULIBS:=.a)

export ROOTDIR
export CFLAGS
export CC

.PHONY: clean

all: $(COBJ)
	ar rcs $(LIB) $(COBJ)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f *.a
	rm -f *.o
